import { Injectable } from '@angular/core';
import { RequestClass } from './request.service';
@Injectable()
export class RealtimeService {
    constructor(private requestclass: RequestClass) {}
    /**
     * 实时监测信息
     * @returns
     */
    fetchRealTime = async (options) => {
        const {
            name,
            number,
            warning,
            village,
            town,
            running,
            online,
            remark,
        } = options || {};
        return await this.requestclass.request.get('/realtime', {
            params: {
                name,
                number,
                warning,
                village,
                town,
                running,
                online,
                remark,
            },
        });
    };
}
